/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 *  \file     Pwm_Fault.h                                                                               *
 *  \brief    This file contains interface header for PWM Fault injection.                              *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/10/10     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/
#ifndef PWM_FAULT_H
#define PWM_FAULT_H

#ifdef __cplusplus
extern "C" {
#endif

/********************************************************************************************************
 *                                 Global Macro definition                                              *
 *******************************************************************************************************/
/** \brief  PWM fault injection switch */
#if !defined(PWM_FAULT_INJECTION)
/** \brief  FUNCTION:Pwm_Ip_SetOverflow() fault injection. */
#define PwmHook_Pwm_Ip_SetOverflow()
/** \brief  FUNCTION:Pwm_Ip_ConfigClock() fault injection. */
#define PwmHookTimeout_Pwm_Ip_ConfigClock()
/** \brief  FUNCTION:Pwm_Ip_SetDuty() fault injection. */
#define PwmHook_Pwm_Ip_SetDutyCycleOutOfRange()
#define PwmHook_Pwm_Ip_SetDutyCmpOutOfRange()
/** \brief  FUNCTION:Pwm_Ip_ConfigDmaChannel() fault injection. */
#define PwmHook_Pwm_Ip_CfgDmaChGetCfgs()
/** \brief  FUNCTION:PwmHook_Pwm_Ip_CfgDmaChNull() fault injection. */
#define PwmHook_Pwm_Ip_CfgDmaChNull()
/** \brief  FUNCTION:PwmHook_Pwm_Ip_DmaInitCh() fault injection. */
#define PwmHook_Pwm_Ip_DmaInitCh()
/** \brief  FUNCTION:PwmHook_Pwm_Ip_DmaChCfg() fault injection. */
#define PwmHook_Pwm_Ip_DmaChCfg()
/** \brief  FUNCTION:PwmHook_Pwm_Ip_CfgDmaChRelease() fault injection. */
#define PwmHook_Pwm_Ip_CfgDmaChRelease()
/** \brief  FUNCTION:Pwm_Ip_Irq() fault injection. */
#define PwmHookBegin_Pwm_Ip_Irq()
#define PwmHookEnd_Pwm_Ip_Irq()
/** \brief  FUNCTION:Pwm_Ip_XtrgSetOverflow() fault injection. */
#define PwmHook_Pwm_Ip_XtrgSetOverflow()
/** \brief  FUNCTION:Pwm_Ip_XtrgSetDuty() fault injection. */
#define PwmHook_Pwm_Ip_XtrgSetDutyCycleOutOfRange()
#define PwmHook_Pwm_Ip_XtrgSetDutyCmpOutOfRange()
/** \brief  FUNCTION:Pwm_Ip_XtrgIrq() fault injection. */
#define PwmHookBegin_Pwm_Ip_XtrgIrq()
#define PwmHookEnd_Pwm_Ip_XtrgIrq()
/** \brief  FUNCTION:PwmHook_Pwm_Ip_XtrgSetOutputDeinitState() fault injection. */
#define PwmHook_Pwm_Ip_XtrgSetOutputDeinitState()
/** \brief  FUNCTION:PwmHook_Pwm_Ip_XtrgInitSetOverflow() fault injection. */
#define PwmHook_Pwm_Ip_XtrgInitSetOverflow()
#else
#include "Pwm_UserFault.h"
#endif /** #if !defined(PWM_FAULT_INJECTION) */

#ifdef __cplusplus
}
#endif

#endif /* PWM_FAULT_H */
/* End of file */
